#include "stdafx.h"

boost::mt19937 randomGenerator;

bool CollisionBetweenCircles( irr::core::vector3df _posC1, float _radC1, irr::core::vector3df _posC2, float _radC2 )
{
	float distance = (_posC1-_posC2).getLengthSQ();
    float radiusSums = _radC1+_radC2;

	return ( distance < (radiusSums * radiusSums) );
}

int boost_random( int _min, int _max)
{
    boost::uniform_int<> dist(_min, _max);
    boost::variate_generator<boost::mt19937&, boost::uniform_int<> > boost_randomizer(randomGenerator, dist);
    return boost_randomizer();
}
